home *** CD-ROM | disk | FTP | other *** search
/ PC Open 97 / PC Open 97 CD2.bin / Demo / FileMaker / Data1.cab / Summary.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2003-11-11  |  9.2 KB  |  256 lines

  1. ∩╗┐<?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     <xsl:import href="Strings.xsl"/>
  4.     <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" encoding="UTF-8" indent="yes"/>        
  5.     
  6.     <!-- Template for generating the main report. The main entry point for the transformation. -->
  7.     <xsl:template name="Summary" match="FMPReport">
  8.         <html>
  9.             <head>
  10.                 <title>
  11.                     <xsl:value-of select="$valDatabaseDesignReport"/>
  12.                 </title>
  13.                 <link href="{$valReportCSS}" type="text/css" rel="stylesheet"/>        
  14.             </head>    
  15.             <body>
  16.                 <p>
  17.                     <span class="maintitle">
  18.                         <xsl:value-of select="$valDatabaseDesignReport"/>
  19.                     </span>
  20.                     <br/>
  21.                     <span class="chartheadersnobg">
  22.                         <xsl:value-of select="concat($valReportCreated,': ',@creationDate,' ',$valAt,' ',@creationTime)"/>
  23.                     </span>
  24.                 </p>
  25.                 <p class="partheading">
  26.                     <xsl:value-of select="$valReportOverview"/>
  27.                 </p>
  28.                 <table borderColor="#cccccc" width="100%" border="1">
  29.                     <tbody>
  30.                         <tr class="chartheaders" vAlign="top">
  31.                             <td width="16%">
  32.                                 <div align="center">
  33.                                     <xsl:value-of select="$valFileName"/>
  34.                                 </div>
  35.                             </td>
  36.                             <td width="5%">
  37.                                 <div align="center">
  38.                                     <xsl:value-of select="$valTables"/>
  39.                                 </div>
  40.                             </td>
  41.                             <td width="10%">
  42.                                 <div align="center">
  43.                                     <xsl:value-of select="$valRelationships"/>
  44.                                 </div>
  45.                             </td>
  46.                             <td width="6%">
  47.                                 <div align="center">
  48.                                     <xsl:value-of select="$valLayouts"/>
  49.                                 </div>
  50.                             </td>
  51.                             <td width="10%">
  52.                                 <div align="center">
  53.                                     <xsl:value-of select="$valValueLists"/>
  54.                                 </div>
  55.                             </td>
  56.                             <td width="4%">
  57.                                 <div align="center">
  58.                                     <xsl:value-of select="$valScripts"/>
  59.                                 </div>
  60.                             </td>
  61.                             <td width="7%">
  62.                                 <div align="center">
  63.                                     <xsl:value-of select="$valAccounts"/>
  64.                                 </div>
  65.                             </td>
  66.                             <td width="12%">
  67.                                 <div align="center">
  68.                                     <xsl:value-of select="$valPrivilegeSets"/>
  69.                                 </div>
  70.                             </td>
  71.                             <td width="9%">
  72.                                 <div align="center">
  73.                                     <xsl:value-of select="$valExtendedPrivileges"/>
  74.                                 </div>            
  75.                             </td>
  76.                             <td width="8%">
  77.                                 <div align="center">
  78.                                     <xsl:value-of select="$valCustomFunctions"/>
  79.                                 </div>
  80.                             </td>
  81.                             <td width="13%">
  82.                                 <div align="center">
  83.                                     <xsl:value-of select="$valFileReferences"/>
  84.                                 </div>
  85.                             </td>
  86.                         </tr>
  87.                         <xsl:for-each select="File">
  88.                             <xsl:sort select="@name"/>
  89.                             <tr class="regularcharttext">                                
  90.                                 <td>
  91.                                     <div align="center">    
  92.                                         <xsl:call-template name="ExternalLink-NoAnchor">
  93.                                             <xsl:with-param name="inFileLink" select="@link"/>
  94.                                             <xsl:with-param name="inDisplayText" select="@name"/>
  95.                                         </xsl:call-template>
  96.                                     </div>
  97.                                 </td>
  98.                                 <td>
  99.                                     <div align="center">
  100.                                         <xsl:choose>
  101.                                         <xsl:when test="BaseTables/@count > 0">
  102.                                             <xsl:call-template name="ExternalLink-NoAnchor">
  103.                                                 <xsl:with-param name="inFileLink" select="concat(@link,'?',$valTables, $kAnchorSection)"/>
  104.                                                 <xsl:with-param name="inDisplayText" select="BaseTables/@count"/>
  105.                                             </xsl:call-template>                                            
  106.                                         </xsl:when>
  107.                                         <xsl:otherwise>
  108.                                             <xsl:value-of select="BaseTables/@count"/>
  109.                                         </xsl:otherwise>
  110.                                         </xsl:choose>
  111.                                     </div>
  112.                                 </td>
  113.                                 <td>
  114.                                     <div align="center">
  115.                                         <xsl:choose>
  116.                                             <xsl:when test="Relationships/@count > 0">
  117.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  118.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valRelationships,$kAnchorSection)"/>
  119.                                                     <xsl:with-param name="inDisplayText" select="Relationships/@count"/>
  120.                                                 </xsl:call-template>                                                
  121.                                             </xsl:when>
  122.                                             <xsl:otherwise>
  123.                                                 <xsl:value-of select="Relationships/@count"/>
  124.                                             </xsl:otherwise>
  125.                                         </xsl:choose>
  126.                                             
  127.                                     </div>
  128.                                 </td>
  129.                                 <td>
  130.                                     <div align="center">
  131.                                         <xsl:choose>
  132.                                             <xsl:when test="Layouts/@count > 0">
  133.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  134.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valLayouts,$kAnchorSection)"/>
  135.                                                     <xsl:with-param name="inDisplayText" select="Layouts/@count"/>
  136.                                                 </xsl:call-template>                                                
  137.                                             </xsl:when>
  138.                                             <xsl:otherwise>
  139.                                                 <xsl:value-of select="Layouts/@count"/>
  140.                                             </xsl:otherwise>
  141.                                         </xsl:choose>
  142.                                     </div>
  143.                                 </td>
  144.                                 <td>
  145.                                     <div align="center">
  146.                                         <xsl:choose>
  147.                                             <xsl:when test="ValueLists/@count > 0">
  148.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  149.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valValueLists,$kAnchorSection)"/>
  150.                                                     <xsl:with-param name="inDisplayText" select="ValueLists/@count"/>
  151.                                                 </xsl:call-template>                                                    
  152.                                             </xsl:when>
  153.                                             <xsl:otherwise>
  154.                                                 <xsl:value-of select="ValueLists/@count"/>
  155.                                             </xsl:otherwise>
  156.                                         </xsl:choose>
  157.                                     </div>
  158.                                 </td>
  159.                                 <td>
  160.                                     <div align="center">
  161.                                         <xsl:choose>
  162.                                             <xsl:when test="Scripts/@count > 0">
  163.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  164.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valScripts,$kAnchorSection)"/>
  165.                                                     <xsl:with-param name="inDisplayText" select="Scripts/@count"/>
  166.                                                 </xsl:call-template>                                                                                                
  167.                                             </xsl:when>
  168.                                             <xsl:otherwise>
  169.                                                 <xsl:value-of select="Scripts/@count"/>
  170.                                             </xsl:otherwise>
  171.                                         </xsl:choose>
  172.                                     </div>
  173.                                 </td>
  174.                                 <td>
  175.                                     <div align="center">
  176.                                         <xsl:choose>
  177.                                             <xsl:when test="Accounts/@count > 0">
  178.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  179.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valAccounts, $kAnchorSection)"/>
  180.                                                     <xsl:with-param name="inDisplayText" select="Accounts/@count"/>
  181.                                                 </xsl:call-template>                                                
  182.                                             </xsl:when>
  183.                                             <xsl:otherwise>
  184.                                                 <xsl:value-of select="Accounts/@count"/>
  185.                                             </xsl:otherwise>
  186.                                         </xsl:choose>
  187.                                     </div>
  188.                                 </td>
  189.                                 <td>
  190.                                     <div align="center">
  191.                                         <xsl:choose>
  192.                                             <xsl:when test="Privileges/@count > 0">
  193.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  194.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valPrivilegeSets, $kAnchorSection)"/>
  195.                                                     <xsl:with-param name="inDisplayText" select="Privileges/@count"/>
  196.                                                 </xsl:call-template>                                                    
  197.                                             </xsl:when>
  198.                                             <xsl:otherwise>
  199.                                                 <xsl:value-of select="Privileges/@count"/>
  200.                                             </xsl:otherwise>
  201.                                         </xsl:choose>
  202.                                     </div>
  203.                                 </td>
  204.                                 <td>
  205.                                     <div align="center">
  206.                                         <xsl:choose>
  207.                                             <xsl:when test="ExtendedPrivileges/@count > 0">
  208.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  209.                                                     <xsl:with-param name="inFileLink" select="concat(@link, '?', $valExtendedPrivileges, $kAnchorSection)"/>
  210.                                                     <xsl:with-param name="inDisplayText" select="ExtendedPrivileges/@count"/>
  211.                                                 </xsl:call-template>                                                
  212.                                             </xsl:when>
  213.                                             <xsl:otherwise>
  214.                                                 <xsl:value-of select="ExtendedPrivileges/@count"/>
  215.                                             </xsl:otherwise>
  216.                                         </xsl:choose>
  217.                                     </div>
  218.                                 </td>
  219.                                 <td>
  220.                                     <div align="center">
  221.                                         <xsl:choose>
  222.                                             <xsl:when test="CustomFunctions/@count > 0">
  223.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  224.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valCustomFunctions,$kAnchorSection)"/>
  225.                                                     <xsl:with-param name="inDisplayText" select="CustomFunctions/@count"/>
  226.                                                 </xsl:call-template>                                                        
  227.                                             </xsl:when>
  228.                                             <xsl:otherwise>
  229.                                                 <xsl:value-of select="CustomFunctions/@count"/>
  230.                                             </xsl:otherwise>
  231.                                         </xsl:choose>
  232.                                     </div>
  233.                                 </td>
  234.                                 <td>
  235.                                     <div align="center">
  236.                                         <xsl:choose>
  237.                                             <xsl:when test="FileReferences/@count > 0">
  238.                                                 <xsl:call-template name="ExternalLink-NoAnchor">
  239.                                                     <xsl:with-param name="inFileLink" select="concat(@link,'?',$valFileReferences, $kAnchorSection)"/>
  240.                                                     <xsl:with-param name="inDisplayText" select="FileReferences/@count"/>
  241.                                                 </xsl:call-template>                                                
  242.                                             </xsl:when>
  243.                                             <xsl:otherwise>
  244.                                                 <xsl:value-of select="FileReferences/@count"/>
  245.                                             </xsl:otherwise>
  246.                                         </xsl:choose>
  247.                                     </div>
  248.                                 </td>
  249.                             </tr>                        
  250.                         </xsl:for-each>
  251.                     </tbody>
  252.                 </table>
  253.             </body>
  254.         </html>
  255.     </xsl:template>
  256. </xsl:stylesheet>